<script setup lang="ts">
import {useWorkInformation} from "../../hooks/useWorkInformation.ts";
import {onMounted} from "vue";
import {vocationList} from "../../hooks/utils/UserWorkInformationInterface.ts";

const {account} = defineProps<{
  account: string
}>()

const {userWorkInformation, getUserWorkInformation} = useWorkInformation()
onMounted(() => {
  getUserWorkInformation(account)
})

</script>

<template>
  <div class="content-main-box">
    <el-form :model="userWorkInformation" label-width="120px">
      <el-form-item label="公司名称:">
        <el-input :disabled="userWorkInformation.companyDisable"
                  v-model="userWorkInformation.company"
                  placeholder="公司名称" clearable/>
      </el-form-item>
      <el-form-item label="职位名称:">
        <el-input :disabled="userWorkInformation.JobDisable"
                  v-model="userWorkInformation.Job"
                  placeholder="职位名称" clearable/>
      </el-form-item>

      <el-form-item label="所属行业:">
        <el-select :disabled="userWorkInformation.vocationDisable"
                   v-model="userWorkInformation.vocation"
                   placeholder="学历">
          <el-option v-for="item in vocationList" :key="item" :label="item" :value="item"/>
        </el-select>
      </el-form-item>
    </el-form>
  </div>
</template>

<style scoped lang="scss">
@import "../style/Content";
</style>